package com.zhiyou100.crm.service.impl;

import com.zhiyou100.crm.dao.MessageDao;
import com.zhiyou100.crm.dao.impl.MesageDaoImpl;
import com.zhiyou100.crm.service.MessageService;
import com.zhiyou100.crm.util.DBUtil1;
import com.zhiyou100.crm.util.Message;

import java.util.List;

public class MessageServiceImpl implements MessageService {
    MessageDao messageDao=new MesageDaoImpl();
    @Override
    public List<Message> queryMessage() {
        return messageDao.queryMessage();
    }

    @Override
    public int delete(int id) {
        return messageDao.delete(id);
    }

    @Override
    public int update(Message message) {
        return 0;
    }

    @Override
    public int insert(Message message) {
        return messageDao.insert(message);
    }

    @Override
    public int insert1(Message message) {
        return messageDao.insert1(message);
    }
}
